package com.frank.circle.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2025/10/15
 * @description 消息表
 */
@Data
@TableName(value = "share_message")
public class ShareMessage implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 来自人
     */
    @TableField(value = "from_id")
    private String fromId;

    /**
     * 送达人
     */
    @TableField(value = "to_id")
    private String toId;

    /**
     * 消息内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 是否被阅读 1是 2否
     */
    @TableField(value = "is_read")
    private Integer isRead;

    /**
     * 创建人
     */
    @TableField(value = "created_by")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    private Date createdTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 是否被删除 0为删除 1已删除
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;
}